﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyMessageBox.ascx.cs" Inherits="CityGames.MyMessageBox" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:LinkButton ID="LinkButtonTargetControl" runat="server"></asp:LinkButton>
<asp:ModalPopupExtender ID="ModalPopupExtenderMessage" runat="server" TargetControlID="LinkButtonTargetControl" 
    PopupControlID="MessageBox" OkControlID="ButtonOK" CancelControlID="CloseButton" BackgroundCssClass="messagemodalbackground" />    
<asp:Panel ID="MessageBox" runat="server" style="display:none;">
    <div class="messageheader">
        <asp:Label ID="LabelPopupHeader" CssClass="messageheadertext"
            runat="server"  Text="Header Text" />
        <asp:HyperLink runat="server" id="CloseButton">
            <asp:Image ID="Image1" runat="server" ImageUrl="~/imagenes/close.png" AlternateText="Click here to close this message" />
        </asp:HyperLink>
    </div>
    <div>
        <p>
            <asp:Literal ID="litMessage" runat="server"></asp:Literal>
        </p>
    </div>
    <div class="messagefooter">
        <asp:Button ID="ButtonOK" runat="server" Text="OK" CausesValidation="False" />
    </div>
</asp:Panel>